package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.time.LocalDate;

@Mapper
public interface OrderSettingMapper {
    @Select("select * from t_ordersetting where orderDate = #{orderDate}")
    OrderSetting getRevesations(LocalDate orderDate);

    @Update("update t_ordersetting set reservations = reservations + 1")
    void addRevesations(LocalDate orderDate);
}
